<?php
namespace app\common\validate\Subject;

use think\Validate;

// 课程订单的验证器
class Chapter extends Validate
{
    protected $rule =   [
        'title'  => 'require',
        'url'   => 'require',
    ];

    protected $message  =   [
        'title.require' => '章节名称必须填写',
        'url.require'     => '视频地址必须填写',
    ];
}